package com.itheima.health.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: health_paret
 * @description: 分页插件
 * @author: Mr.Wang
 * @create: 2020-11-03 20:06
 **/
@Configuration
public class PageHelperConfig {
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }

}
